"""
Created on Wed Sep 11 11:43:44 2024

@author: Administrator
"""
from tkinter import *
root = Tk()
# 创建一个Canvas，设置其背景色为白色
cv = Canvas(root,bg = 'white')
# 创建一个矩形，坐标为(10,10,110,110)
retange = cv.create_rectangle(10,10,110,200)

line=cv.create_line(0,0,100,100)
#line 不是对象
print(line)
#椭圆 
cv.create_oval(100,100, 50,50)


cv.pack()
#you must need mainloop or you will not see window
root.mainloop()
